import { DateTime, Entity, Jsonb, PrimaryKey } from "@sker/core";

@Entity({ name: 'ims_cache' })
export class Cache {
    @PrimaryKey()
    key: string;
    @Jsonb({ comment: '值' })
    value: any;
    @DateTime({ comment: '过期时间' })
    exp_time: Date;
}

@Entity({ name: 'ims_cache_0' })
export class Cache0 {
    @PrimaryKey()
    key: string;
    @Jsonb({ comment: '值' })
    value: any;
    @DateTime({ comment: '过期时间' })
    exp_time: Date;
}

@Entity({ name: 'ims_cache_1' })
export class Cache1 {
    @PrimaryKey()
    key: string;
    @Jsonb({ comment: '值' })
    value: any;
    @DateTime({ comment: '过期时间' })
    exp_time: Date;
}


@Entity({ name: 'ims_cache_2' })
export class Cache2 {
    @PrimaryKey()
    key: string;
    @Jsonb({ comment: '值' })
    value: any;
    @DateTime({ comment: '过期时间' })
    exp_time: Date;
}

@Entity({ name: 'ims_cache_3' })
export class Cache3 {
    @PrimaryKey()
    key: string;
    @Jsonb({ comment: '值' })
    value: any;
    @DateTime({ comment: '过期时间' })
    exp_time: Date;
}


@Entity({ name: 'ims_cache_4' })
export class Cache4 {
    @PrimaryKey()
    key: string;
    @Jsonb({ comment: '值' })
    value: any;
    @DateTime({ comment: '过期时间' })
    exp_time: Date;
}


@Entity({ name: 'ims_cache_5' })
export class Cache5 {
    @PrimaryKey()
    key: string;
    @Jsonb({ comment: '值' })
    value: any;
    @DateTime({ comment: '过期时间' })
    exp_time: Date;
}


@Entity({ name: 'ims_cache_6' })
export class Cache6 {
    @PrimaryKey()
    key: string;
    @Jsonb({ comment: '值' })
    value: any;
    @DateTime({ comment: '过期时间' })
    exp_time: Date;
}

@Entity({ name: 'ims_cache_7' })
export class Cache7 {
    @PrimaryKey()
    key: string;
    @Jsonb({ comment: '值' })
    value: any;
    @DateTime({ comment: '过期时间' })
    exp_time: Date;
}
